<%@ page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="/WEB-INF/jsp/common/include/taglibs.jsp"%>
<script type="text/javascript">

$(document).ready(function(){
	
});


function sendData(){
	$("#frmData").submit();
}

function sms_init(){
	$("input[type='checkbox']").attr("checked",false);
}
</script>
<form action="./pere1101T.do" method="post" id="frmData">
<input name="p_id" value="${param.p_id }" type="hidden"/>

<table width="100%" border="0" cellspacing="0" cellpadding="10">
	<tr>
		<td><table width="100%" border="0" cellspacing="0"
				cellpadding="0">
				<tr>
					<td>&nbsp;</td>
				</tr>
				<tr>
					<td background="/usr/images/mypage_m01bg.gif"><table
							width="100%" border="0" cellspacing="0" cellpadding="0">
							<tr>
								<td width="40%"><img src="/usr/images/res_m01.gif"
									width="262" height="22"></td>
								<td width="60%" align="right"><%@ include file="/WEB-INF/jsp/usr/pe/re/pere_top.jsp"%></td>
							</tr>
						</table></td>
				</tr>
				<tr>
					<td height="20" background="/usr/images/res_mbg.gif"
						bgcolor="#F4F4F4">&nbsp;</td>
				</tr>
			</table>
			<table width="100%" border="0" cellspacing="0" cellpadding="0">
				<tr>
					<td width="50%" align="center"><table border="0"
							cellspacing="0" cellpadding="0">
							<tr>
								<td width="70" align="left"><img
									src="/usr/images/reservation_icon_home.gif" width="47"
									height="31"></td>
								<td><IMG
									SRC="${pensionInfo.p_logo }"
									BORDER="0" height="30"></td>
							</tr>
						</table></td>
					<td width="50%">&nbsp;</td>
				</tr>
 <br/>

			<table width="100%" border="0" cellspacing="2" cellpadding="10"
				bgcolor="#c7d9e7">
				<tr>
					<td bgcolor="#FFFFFF">* <strong>SMS 현 사용가능 횟수 : ${mapA.sms_cnt }건
					</strong><br> * <strong>휴대폰인증 사용가능 횟수 : ${mapA.sms_cnt }건</strong><br> * SMS
						발송건당 비용은 ${pensionInfo.sms_pay }원 입니다.<br> * 휴대폰인증 건당 비용은 ${pensionInfo.sms_pay }원 입니다. <br> *
						선납하신 금액 한도내에서 사용할수 있습니다.<br> * 입금계좌 안내 : 국민은행
						522301-01-235047 최창희
					</td>
				</tr>
			</table> <br> <BR>
			<TABLE width="100%">
				<TR>
					<TD align="left">충전내역</TD>
					<TD align="right">현재잔여건수 : <B>${mapA.sms_cnt }</B>건
					</TD>
				</TR>
			</TABLE>

			<table width="100%" border="0" cellspacing="1" cellpadding="0">
				<tr align="center" bgcolor="#6f9dc1" class="bold">
					<td width="10%" height="20">번호</td>
					<td width="21%">건수</td>
					<td width="16%">입금액</td>
					<td width="16%">적립일</td>
				</tr>
<c:if test="${list !=null && fn:length(list)>0 }">
	<c:forEach var="map1" items="${list}" varStatus="status">
				<tr align="center">
					<td height="30">${status.count }</td>
					<td><fmt:formatNumber value="${map1.sc_cnt }" pattern="#,###"/>건</td>
					<td><fmt:formatNumber value="${map1.sc_pay }" pattern="#,###"/>원</td>
					<td>${map1.reg_dt_n }</td>
				</tr>
	</c:forEach>
</c:if>

				<tr>
					<td height="1" colspan="6" bgcolor="#6f9dc1"></td>
				</tr>
			</table>
			<table width="100%" border="0" cellspacing="0" cellpadding="0">
				<tr>
					<td>&nbsp;</td>
				</tr>
				<tr>
					<td align="center"></td>
				</tr>
			</table><br/>
			<table width="100%" border="0" cellspacing="0" cellpadding="0">
				<tr>
					<td height="25" align="center" class="bold">* SMS 발송설정 (SMS
						사용시에만 설정을 변경할수 있습니다.)</td>
				</tr>
			</table>
			<table width="100%" border="1" cellspacing="0" cellpadding="5"
				style="border-collapse: collapse;" bordercolor="#cccccc">
					<tr align="center" bgcolor="#f1f1f0">
						<td height="30" bgcolor="#f1f1f0">상태</td>
						<td>구분</td>
						<td>SMS문구</td>
						<td width="50">예약자</td>
						<td width="50">관리자</td>
					</tr>
					<tr>
						<td rowspan="2">예약대기(무통장)</td>
						<td>예약자</td>
						<td>[펜션명] 국민은행 234542-01-233243 100.000원 입금대기중<br>
							2009-00-00/객실명/예약번호
						</td>
						
						<td rowspan="2" align="center"><input type="checkbox"
							name="a1" id="a1" value="Y" <c:if test="${map.a1=='Y' }"> checked="checked"</c:if>></td>
						<td rowspan="2" align="center"><input type="checkbox"
							name="a2" id="a2" value="Y" <c:if test="${map.a2=='Y' }"> checked="checked"</c:if>></td>
					</tr>
					<tr>
						<td>관리자</td>
						<td>[예약대기] 2009-00-00/객실명/1박/아무개</td>
					</tr>
					<tr>
						<td rowspan="2">예약완료(실시간계좌,카드)</td>
						<td>예약자</td>
						<td>[펜션명]결제완료 되었습니다/2009-00-00(이용일)/객실명</td>
						<td rowspan="2" align="center"><input type="checkbox"
							name="b1" id="b1" value="Y" <c:if test="${map.b1=='Y' }"> checked="checked"</c:if>></td>
						<td rowspan="2" align="center"><input type="checkbox"
							name="b2" id="b2" value="Y" <c:if test="${map.b2=='Y' }"> checked="checked"</c:if>></td>
					</tr>
					<tr>
						<td>관리자</td>
						<td>[입금완료]2009-00-00/객실명/1박/아무개</td>
					</tr>
					<tr>
						<td rowspan="2">예약완료(무통장입금)</td>
						<td>예약자</td>
						<td>[펜션명]입금확인 되었습니다/2009-00-00(이용일)/객실명</td>
						<td rowspan="2" align="center"><input type="checkbox"
							name="c1" id="c1" value="Y" <c:if test="${map.c1=='Y' }"> checked="checked"</c:if>></td>
						<td rowspan="2" align="center"><input type="checkbox"
							name="c2" id="c2" value="Y" <c:if test="${map.c2=='Y' }"> checked="checked"</c:if>></td>
					</tr>
					<tr>
						<td>관리자</td>
						<td>[입금완료]2009-00-00/객실명/1박/아무개</td>
					</tr>
					<tr>
						<td>미입금예약 삭제30분전</td>
						<td>예약자</td>
						<td>[펜션명]객실명-국민은행 142313-123-123132 100,000원<br> 30분후
							예약이 자동삭제됩니다.
						</td>
						<td align="center"><input type="checkbox" name="d1" id="d1"
							value="Y" <c:if test="${map.d1=='Y' }"> checked="checked"</c:if>></td>
						<td align="center"><input type="checkbox" name="d2" id="d2"
							value="Y" <c:if test="${map.d2=='Y' }"> checked="checked"</c:if>></td>
					</tr>
					<tr>
						<td rowspan="2">미입금 자동삭제</td>
						<td>예약자</td>
						<td>[펜션명]미입금으로 예약이 취소되었습니다</td>
						<td rowspan="2" align="center"><input type="checkbox"
							name="e1" id="e1" value="Y" <c:if test="${map.e1=='Y' }"> checked="checked"</c:if>></td>
						<td rowspan="2" align="center"><input type="checkbox"
							name="e2" id="e2" value="Y" <c:if test="${map.e2=='Y' }"> checked="checked"</c:if>></td>
					</tr>
					<tr>
						<td>관리자</td>
						<td>[미입급예약삭제]2009-00-00/객실명/1박/아무개</td>
					</tr>
					<tr>
						<td rowspan="2">예약자 취소 요청시</td>
						<td>예약자</td>
						<td>[펜션명]2009-00-00/객실명 예약취소요청</td>
						<td rowspan="2" align="center"><input type="checkbox"
							name="f1" id="f1" value="Y" <c:if test="${map.f1=='Y' }"> checked="checked"</c:if>></td>
						<td rowspan="2" align="center"><input type="checkbox"
							name="f2" id="f2" value="Y"  <c:if test="${map.f2=='Y' }"> checked="checked"</c:if>></td>
					</tr>
					<tr>
						<td>관리자</td>
						<td>[취소요청]2009-00-00/객실명/1박/아무개</td>
					</tr>
					<tr>
						<td>관리자 예약취소완료시</td>
						<td>예약자</td>
						<td>[펜션명]아무개님 예약취소 완료:50,000원 익일6시이내<br> 입금됩니다
						</td>
						<td align="center"><input type="checkbox" name="g1" id="g1"
							value="Y" <c:if test="${map.g1=='Y' }"> checked="checked"</c:if>></td>
						<td align="center"><input type="checkbox" name="g2" id="g2"
							value="Y" <c:if test="${map.g2=='Y' }"> checked="checked"</c:if>></td>
					</tr>
					<tr>
						<td>환불완료시</td>
						<td>예약자</td>
						<td>[펜션명]아무개님 50,000원 환불완료되었습니다</td>
						<td align="center"><input type="checkbox" name="h1" id="h1"
							value="Y" <c:if test="${map.h1=='Y' }"> checked="checked"</c:if>></td>
						<td align="center"><input type="checkbox" name="h2" id="h2"
							value="Y" <c:if test="${map.h2=='Y' }"> checked="checked"</c:if>></td>
					</tr>
					<tr align="center" bgcolor="#f1f1f0">
						<td height="30">상태</td>
						<td>구분</td>
						<td>SMS문구</td>
						<td>예약자</td>
						<td>관리자</td>
					</tr>
					<tr>
						<td rowspan="2">관리자건예약대기</td>
						<td>예약자</td>
						<td>[펜션명] 국민은행 234542-01-233243 100.000원 입금대기중<br>
							2009-00-00/객실명/예약번호
						</td>
						<td rowspan="2" align="center"><input type="checkbox"
							name="i1" id="i1" value="Y" <c:if test="${map.i1=='Y' }"> checked="checked"</c:if>></td>
						<td rowspan="2" align="center"><input type="checkbox"
							name="i2" id="i2" value="Y" <c:if test="${map.i2=='Y' }"> checked="checked"</c:if>></td>
					</tr>
					<tr>
						<td>관리자</td>
						<td>[예약대기]2008-00-00/객실명/1박/아무개</td>
					</tr>
					<tr>
						<td rowspan="2">관리자건예약완료</td>
						<td>예약자</td>
						<td>[펜션명]입금확인 되었습니다/2009-00-00(이용일)/객실명</td>
						<td rowspan="2" align="center"><input type="checkbox"
							name="j1" id="j1" value="Y" <c:if test="${map.j1=='Y' }"> checked="checked"</c:if>></td>
						<td rowspan="2" align="center"><input type="checkbox"
							name="j2" id="j2" value="Y" <c:if test="${map.j2=='Y' }"> checked="checked"</c:if>></td>
					</tr>
					<tr>
						<td>관리자</td>
						<td>[입금완료]2009-00-00/객실명/1박/아무개</td>
					</tr>
					<tr>
						<td>관리자건미입금예약 삭제30분전</td>
						<td>예약자</td>
						<td>[펜션명]객실명- 국민은행 234542-01-233243<br> 100.000원 삭제30분전
							30분후 예약이 자동취소됩니다
						</td>
						<td align="center"><input type="checkbox" name="k1" id="k1"
							value="Y" <c:if test="${map.k1=='Y' }"> checked="checked"</c:if>></td>
						<td align="center"><input type="checkbox" name="k2" id="k2"
							value="Y" <c:if test="${map.k2=='Y' }"> checked="checked"</c:if>></td>
					</tr>
					<tr>
						<td rowspan="2">관리자건미입금 자동삭제</td>
						<td>예약자</td>
						<td>[펜션명]미입금으로 예약이 취소되었습니다</td>
						<td rowspan="2" align="center"><input type="checkbox"
							name="l1" id="l1" value="Y" <c:if test="${map.l1=='Y' }"> checked="checked"</c:if>></td>
						<td rowspan="2" align="center"><input type="checkbox"
							name="l2" id="l2" value="Y" <c:if test="${map.l2=='Y' }"> checked="checked"</c:if>></td>
					</tr>
					<tr>
						<td>관리자</td>
						<td>[미입급예약삭제]2009-00-00/객실명/1박/아무개</td>
					</tr>
					<tr>
						<td rowspan="2">관리자건 예약자 취소 요청시</td>
						<td>예약자</td>
						<td>[펜션명]2009-00-00/객실명 예약취소요청</td>
						<td rowspan="2" align="center"><input type="checkbox"
							name="m1" id="m1" value="Y" <c:if test="${map.m1=='Y' }"> checked="checked"</c:if>></td>
						<td rowspan="2" align="center"><input type="checkbox"
							name="m2" id="m2" value="Y" <c:if test="${map.m2=='Y' }"> checked="checked"</c:if>></td>
					</tr>
					<tr>
						<td>관리자</td>
						<td>[취소요청]2009-00-00/객실명/1박/아무개</td>
					</tr>
					<tr>
						<td>관리자건 예약자 취소 요청시<br> 예약취소완료시
						</td>
						<td>예약자</td>
						<td>[펜션명]아무개님 예약취소 완료:50.000원 익일6시이내<br> 입금됩니다
						</td>
						<td align="center"><input type="checkbox" name="n1" id="n1"
							value="Y" <c:if test="${map.n1=='Y' }"> checked="checked"</c:if>></td>
						<td align="center"><input type="checkbox" name="n2" id="n2"
							value="Y" <c:if test="${map.n2=='Y' }"> checked="checked"</c:if>></td>
					</tr>
					<tr>
						<td>관리자건 환불완료시</td>
						<td>예약자</td>
						<td>[펜션명]아무개님 50,000원 환불완료되었습니다</td>
						<td align="center"><input type="checkbox" name="o1" id="o1"
							value="Y" <c:if test="${map.o1=='Y' }"> checked="checked"</c:if>></td>
						<td align="center"><input type="checkbox" name="o2" id="o2"
							value="Y" <c:if test="${map.o2=='Y' }"> checked="checked"</c:if>></td>
					</tr>
					<tr>
						<td colspan="5" align="center"><input type="button"
							value="등록" onclick="sendData();"> <input
							type="button" value="초기화" onclick="sms_init()"></td>
					</tr>
			</table> <br>
			<table width="100%" border="0" cellspacing="0" cellpadding="0">
				<tr>
					<td>&nbsp;</td>
				</tr>
				<tr>
					<td align="center">

					</td>
				</tr>
				<tr>
					<td align="center">&nbsp;</td>
				</tr>
				<tr>
					<td height="3" bgcolor="#86ad29"></td>
				</tr>
				<tr>
					<td style="padding-top: 2px;"><%@ include file="/WEB-INF/jsp/usr/pe/re/footer.jsp"%></td>
				</tr>
			</table></td>
	</tr>
</table>
</form>